# -*- coding: utf-8 -*-
from django import forms
from bd42.utils import widgets
from django.contrib.localflavor.br import forms




class CPFField(forms.BRCPFField):
    widget = widgets.CPFWidget

    def __init__(self, *args, **kwargs):
        super(CPFField, self).__init__(*args, **kwargs)




class CNPJField(forms.BRCNPJField):
    widget = widgets.CNPJWidget

    def __init__(self, *args, **kwargs):
        super(CNPJField, self).__init__(*args, **kwargs)




class CEPField(forms.BRZipCodeField):
    widget = widgets.CEPWidget

    def __init__(self, *args, **kwargs):
        super(CEPField, self).__init__(*args, **kwargs)




class PhoneField(forms.BRPhoneNumberField):
    widget = widgets.PhoneWidget

    def __init__(self, *args, **kwargs):
        super(PhoneField, self).__init__(*args, **kwargs)
